// vite.config.ts
import { defineConfig } from "file:///F:/5-Gitee/HzyAdmin/admin-client/node_modules/vite/dist/node/index.js";
import vue from "file:///F:/5-Gitee/HzyAdmin/admin-client/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import { resolve } from "path";
import vueJsx from "file:///F:/5-Gitee/HzyAdmin/admin-client/node_modules/@vitejs/plugin-vue-jsx/dist/index.mjs";
var vite_config_default = defineConfig({
  plugins: [
    vue(),
    vueJsx({
      // https://github.com/vitejs/vite-plugin-vue/tree/main/packages/plugin-vue-jsx
      // options are passed on to @vue/babel-plugin-jsx
    })
  ],
  /**
   * 打包给目录的前缀
   * 生产环境默认：client 文件夹包起来
   * 开发环境默认：/
   */
  base: process.env.NODE_ENV == "production" ? "/client/" : "/",
  server: {
    port: 5501,
    proxy: {
      "/api/v1": {
        target: "http://localhost:5500/",
        ws: false,
        changeOrigin: true
      }
    }
    // 设置 https 代理
    // proxy: {
    //   '/api': {
    //     target: 'your https address',
    //     changeOrigin: true,
    //     rewrite: (path: string) => path.replace(/^\/api/, '')
    //   }
    // }
  },
  resolve: {
    extensions: [".js", ".json", ".scss", ".css", ".less", ".tsx", ".ts", ".vue"],
    alias: {
      "@/": resolve("src") + "/"
    }
  },
  // pages: {
  //     index: {
  //         // page 的入口
  //         entry: 'src/main.ts',
  //         // 模板来源
  //         template: 'public/index.html',
  //         // 在 dist/index.html 的输出
  //         filename: 'index.html',
  //         // 当使用 title 选项时，
  //         // template 中的 title 标签需要是 <title><%= htmlWebpackPlugin.options.title %></title>
  //         title: 'hzy-admin-ui-ts',
  //     },
  // },
  // CSS 预处理器
  css: {
    preprocessorOptions: {
      less: {
        javascriptEnabled: true
      }
    }
    // postcss: {
    //   plugins: [
    //     require('autoprefixer')
    //   ]
    // }
  },
  build: {
    assetsDir: "static/img",
    rollupOptions: {
      output: {
        chunkFileNames: "static/js/[name]-[hash].js",
        entryFileNames: "static/js/[name]-[hash].js",
        assetFileNames: "static/[ext]/[name]-[hash].[ext]"
      }
    }
  }
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJGOlxcXFw1LUdpdGVlXFxcXEh6eUFkbWluXFxcXGFkbWluLWNsaWVudFwiO2NvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9maWxlbmFtZSA9IFwiRjpcXFxcNS1HaXRlZVxcXFxIenlBZG1pblxcXFxhZG1pbi1jbGllbnRcXFxcdml0ZS5jb25maWcudHNcIjtjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfaW1wb3J0X21ldGFfdXJsID0gXCJmaWxlOi8vL0Y6LzUtR2l0ZWUvSHp5QWRtaW4vYWRtaW4tY2xpZW50L3ZpdGUuY29uZmlnLnRzXCI7aW1wb3J0IHsgZGVmaW5lQ29uZmlnIH0gZnJvbSBcInZpdGVcIjtcclxuaW1wb3J0IHZ1ZSBmcm9tIFwiQHZpdGVqcy9wbHVnaW4tdnVlXCI7XHJcbmltcG9ydCB7IHJlc29sdmUgfSBmcm9tIFwicGF0aFwiO1xyXG5pbXBvcnQgdnVlSnN4IGZyb20gXCJAdml0ZWpzL3BsdWdpbi12dWUtanN4XCI7XHJcblxyXG4vLyBodHRwczovL3ZpdGVqcy5kZXYvY29uZmlnL1xyXG5leHBvcnQgZGVmYXVsdCBkZWZpbmVDb25maWcoe1xyXG4gIHBsdWdpbnM6IFtcclxuICAgIHZ1ZSgpLFxyXG4gICAgdnVlSnN4KHtcclxuICAgICAgLy8gaHR0cHM6Ly9naXRodWIuY29tL3ZpdGVqcy92aXRlLXBsdWdpbi12dWUvdHJlZS9tYWluL3BhY2thZ2VzL3BsdWdpbi12dWUtanN4XHJcbiAgICAgIC8vIG9wdGlvbnMgYXJlIHBhc3N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